package com.kaikeba.t31.service;

import com.kaikeba.t31.admin.po.AdminRoleMenu;
import com.kaikeba.t31.core.service.ICrudService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yumingzhi
 * @since 2021-11-15
 */
public interface AdminRoleMenuService extends ICrudService<AdminRoleMenu> {

    void deleteByRole(Long id);

    boolean saveBatch(List<AdminRoleMenu> adminRoleMenus);

    /**
     * 根据角色id查询菜单列表
     *
     * @param roleId
     * @return
     */
    List<AdminRoleMenu> getMenuByRoleId(Long roleId);

    /**
     * 根据角色id批量查询
     *
     * @param roles
     * @return
     */
    List<AdminRoleMenu> getMenuByRoleIdList(List<Long> roles);
}
